﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TJ_GRMYDModeWebForm.aspx.cs" Inherits="Anke.SHManage.Web.Reports.TJ_GRMYDModeWebForm" %>

<%@ Register Assembly="Microsoft.ReportViewer.WebForms, Version=14.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" Namespace="Microsoft.Reporting.WebForms" TagPrefix="rsweb" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>个人满意度统计</title>
    <script src="../Content/EasyUI/jquery.js"></script>
    <script src="../Content/EasyUI/jquery.easyui.js"></script>
    <script src="../Content/EasyUI/locale/easyui-lang-zh_CN.js"></script>
    <link href="../Content/EasyUI/themes/icon.css" rel="stylesheet" />
    <link href="../Content/EasyUI/themes/default/easyui.css" rel="stylesheet" />
    <script src="../Scripts/jquery.AnkeExtend.js"></script>
    <script type="text/javascript">
        //页面加载
        $(document).ready(function () {
            DisableBackspace();
            reload();
        });
        function fillCombobox() {
            //取满意度
            $.EUIcomboboxForReport("#satisfactionLevel", {
                url: "../IM/AllDictionary/GetMSDictionaryInfo?TypeCode=SatisfactionType",
                valueField: 'Name',
                textField: 'Name',
                editable: false,
                OneOption: [{
                    ID: "",
                    Name: "--请选择--"
                }]
            });

            //取不满意原因

            $.EUIcomboboxForReport("#unsatisfyReason", {
                url: "../IM/AllDictionary/GetMSDictionaryInfo?TypeCode=NotSatisfaction",
                valueField: 'Name',
                textField: 'Name',
                editable: false,
                OneOption: [{
                    ID: "",
                    Name: "--请选择--"
                }]
            });
        }

        // 实现UpdatePanel中可以再添加easyUI的样式
        function reload() {
            Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);
        }
        function EndRequestHandler() {
            fillCombobox();
            $('#start').datetimebox();
            $('#end').datetimebox();
            $('#workCode').textbox();
            $('#name').textbox();
        }

    </script>
</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <table>
                    <tr>
                        <td>生成任务时刻：</td>
                        <td>
                            <asp:TextBox ID="start" class="easyui-datetimebox" Style="width: 150px" runat="server" editable="false"></asp:TextBox>
                        </td>
                        <td style="text-align: center">至</td>
                        <td>
                            <asp:TextBox ID="end" class="easyui-datetimebox" Style="width: 150px" runat="server" editable="false"></asp:TextBox>
                        </td>

                        <td style="text-align: right">工号：</td>
                        <td>
                            <asp:TextBox ID="workCode" class="easyui-textbox" Style="width: 150px" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td style="text-align: right">姓名：</td>
                        <td>
                            <asp:TextBox ID="name" class="easyui-textbox" Style="width: 150px" runat="server"></asp:TextBox>
                        </td>
                        <td>满意度：</td>
                        <td>
                            <asp:TextBox ID="satisfactionLevel" class="easyui-combobox" Style="width: 150px" runat="server"></asp:TextBox>
                        </td>
                        <td>不满意原因：</td>
                        <td>
                            <asp:TextBox ID="unsatisfyReason" class="easyui-combobox" Style="width: 150px" runat="server"></asp:TextBox>
                        </td>
                        <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:Button ID="btnSearch" runat="server" Text="查询" OnClick="btnSearch_Click" />
                            &nbsp;                      
                        </td>
                    </tr>
                </table>
            </ContentTemplate>
        </asp:UpdatePanel>
        <div style="background-color: #fafafa; border-left: 1px solid scrollbar; overflow: hidden; height: 100%;">
            <rsweb:ReportViewer ID="ReportViewer1" runat="server" Width="100%" Height="100%"
                ZoomMode="PageWidth" ShowBackButton="true" SizeToReportContent="True">
            </rsweb:ReportViewer>
        </div>
    </form>
</body>
</html>
